/**
 * @author Javier Guaje <jrguajeg@gmail.com>
 */

package co.edu.unal.satacredito.database.entity;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import java.io.Serializable;
import java.util.Date;
import org.bson.types.ObjectId;

@Entity("transaction")
public class Transaction implements Serializable {
    
    @Id
    private ObjectId transactionId;
    
    private ObjectId fileId;
    
    private int fileNumber;
    
    private String name;
    
    private String nin;
    
    private int ninType;
    
    private String cardNumber;
    
    private int cardCode;
    
    private int cardType;
    
    private Date cardExpirationDate;
    
    private ObjectId bank;
    
    private ObjectId franchise;
    
    private Date purchaseDate;
    
    private long purchaseAmount;
    
    private String purchaseDetail;
    
    private Date validationDate;
    
    private int validationResult;
    
    private int validationIssue;
    
    private int readState;

    public ObjectId getBank() {
        return bank;
    }

    public void setBank(ObjectId bank) {
        this.bank = bank;
    }

    public int getCardCode() {
        return cardCode;
    }

    public void setCardCode(int cardCode) {
        this.cardCode = cardCode;
    }

    public Date getCardExpirationDate() {
        return cardExpirationDate;
    }

    public void setCardExpirationDate(Date cardExpirationDate) {
        this.cardExpirationDate = cardExpirationDate;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public int getCardType() {
        return cardType;
    }

    public void setCardType(int cardType) {
        this.cardType = cardType;
    }

    public ObjectId getFileId() {
        return fileId;
    }

    public void setFileId(ObjectId fileId) {
        this.fileId = fileId;
    }

    public int getFileNumber() {
        return fileNumber;
    }

    public void setFileNumber(int fileNumber) {
        this.fileNumber = fileNumber;
    }

    public ObjectId getFranchise() {
        return franchise;
    }

    public void setFranchise(ObjectId franchise) {
        this.franchise = franchise;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNin() {
        return nin;
    }

    public void setNin(String nin) {
        this.nin = nin;
    }

    public int getNinType() {
        return ninType;
    }

    public void setNinType(int ninType) {
        this.ninType = ninType;
    }

    public long getPurchaseAmount() {
        return purchaseAmount;
    }

    public void setPurchaseAmount(long purchaseAmount) {
        this.purchaseAmount = purchaseAmount;
    }

    public Date getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(Date purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getPurchaseDetail() {
        return purchaseDetail;
    }

    public void setPurchaseDetail(String purchaseDetail) {
        this.purchaseDetail = purchaseDetail;
    }

    public int getReadState() {
        return readState;
    }

    public void setReadState(int readState) {
        this.readState = readState;
    }

    public ObjectId getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(ObjectId transactionId) {
        this.transactionId = transactionId;
    }

    public Date getValidationDate() {
        return validationDate;
    }

    public void setValidationDate(Date validationDate) {
        this.validationDate = validationDate;
    }

    public int getValidationIssue() {
        return validationIssue;
    }

    public void setValidationIssue(int validationIssue) {
        this.validationIssue = validationIssue;
    }

    public int getValidationResult() {
        return validationResult;
    }

    public void setValidationResult(int validationResult) {
        this.validationResult = validationResult;
    }
}